package fr.neticar.webremoteclient.client;

import com.google.gwt.user.client.ui.KeyboardListener;

public class KeyboardUtils {

	public static boolean isSpecialKey(int keyCode) {
		return (keyCode == KeyboardListener.KEY_BACKSPACE || keyCode == KeyboardListener.KEY_DELETE
				|| keyCode == KeyboardListener.KEY_DOWN || keyCode == KeyboardListener.KEY_END
				|| keyCode == KeyboardListener.KEY_ENTER || keyCode == KeyboardListener.KEY_ESCAPE
				|| keyCode == KeyboardListener.KEY_HOME || keyCode == KeyboardListener.KEY_LEFT
				|| keyCode == KeyboardListener.KEY_PAGEDOWN || keyCode == KeyboardListener.KEY_PAGEUP
				|| keyCode == KeyboardListener.KEY_RIGHT || keyCode == KeyboardListener.KEY_TAB || keyCode == KeyboardListener.KEY_UP);
	}

}
